package com.example.ShoppingManagementSystem.control;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class HomeIndexController {
    @GetMapping("/")
    public String home() {
        return "index"; // 对应于 src/main/resources/templates/index.html
    }

    @GetMapping("/admin-login")
    public String adminLogin() {
        return "admin-login";
    }

    @GetMapping("/customer-login")
    public String customerLogin() {
        return "login-page";
    }
}

